package mvc.gui.impl;

import mvc.core.IMachuPicchu;
import mvc.effects.IEffect;

public class EffectsButtonPresenter {

	private IMachuPicchu machu;

	public EffectsButtonPresenter(IMachuPicchu machu, EffectsButton button) {

		this.machu = machu;

	}

	/*
	 * applies effect to selected image.
	 */
	public void applyEffect(IEffect effect) {
		if (machu.getSelectedImages().size() > 0)
			machu.applyEffect(effect);
	}

}
